from ending_framework_api.apps.leaveplatform import views
from django.urls import path
from rest_framework.routers import SimpleRouter

router = SimpleRouter()

# http://127.0.0.1:8000/api/v1/leaveplatform/leave

router.register('leave', views.LeaveView, 'leave')

urlpatterns = [
    # 发送请假单拒绝的短信接口
    # http://127.0.0.1:8000/api/v1/leaveplatform/send_mobile/
    path('send_mobile/', views.send_mobile.as_view()),
]
urlpatterns += router.urls
